package nl.windgazer.arachne.services.yql;

import org.apache.tapestry5.json.JSONObject;
import org.w3c.dom.Document;

public interface YQLConduit {

	public static final String YQL_PUBLIC_URL = "public.yql.arachne.windgazer.nl";

	public static final String YQL_PUBLIC_URL_DEFAULT = "http://query.yahooapis.com/v1/public/yql";

	public static final String YQL_OAUTH_URL = "oauth.yql.arachne.windgazer.nl";

	public static final String YQL_OAUTH_URL_DEFAULT = "http://query.yahooapis.com/v1/yql";

	public JSONObject jsonByQuery(final String yqlQuery, Object... args);

	public JSONObject jsonByAlias(final String prefix, final String alias, Object... args);

	public Document domByQuery(final String yqlQuery, Object... args);

	public Document domByAlias(final String prefix, final String alias, Object... args);

	public YQLRSSEntry[] getRSSEntries(String... urls);

}
